<div class="row" ng-controller="myFoodController">
    <!-- Modal -->
    <div class="col-md-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h1 class="panel-title">
                    加盟商家上传餐品列表汇总
                </h1>
            </div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-md-12">
                        <table class="table table-hover table-cell table-bordered">
                            <thead>
                            <tr>
                                <th></th>
                                <th>所有商家</th>
                                <th>商家地址</th>
                                <th>商家联系方式</th>
                                <th>商家上传餐品</th>
                                <th>商家餐品价格</th>
                                <th>商家审核状态</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="myFood in myFoods">
                                <td>{{$index+1}}</td>
                                <td>{{myFood.name}}</td>
                                <td>{{myFood.address}}</td>
                                <td>{{myFood.phone}}</td>
                                <td>{{myFood.food}}</td>
                                <td>{{myFood.price}}</td>
                                <td>{{myFood.status | statusFilter}}</td>
                                <td>
                                    <button type="button" class="btn btn-primary btn-sm" ng-hide="myFood.status=='enabled'" ng-click="enabled(myFood)">
                                        通过
                                    </button>
                                  <!--  <button type="button" class="btn btn-primary btn-sm" ng-hide="business.status=='disabled'" ng-click="disabled(business)">
                                        未通过
                                    </button>-->
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="panel-footer">
                <a href="#/welcome" class="btn btn-info">返回首页</a>
            </div>
        </div>
    </div>

</div>
